package com.zhentao.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName user_feedback
 */
@TableName(value ="user_feedback")
@Data
public class UserFeedback {
    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 问题类型
     */
    private String problemType;

    /**
     * 问题描述
     */
    private String problemDescription;

    /**
     * 反馈状态（待处理/处理中/已处理等）
     */
    private String feedbackStatus;

    /**
     * 手机号码
     */
    private String phoneNumber;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 备注
     */
    private String remark;

    /**
     * 微信昵称
     */
    private String wechatNickname;

    /**
     * 操作时间
     */
    private Date operationTime;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UserFeedback other = (UserFeedback) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getProblemType() == null ? other.getProblemType() == null : this.getProblemType().equals(other.getProblemType()))
            && (this.getProblemDescription() == null ? other.getProblemDescription() == null : this.getProblemDescription().equals(other.getProblemDescription()))
            && (this.getFeedbackStatus() == null ? other.getFeedbackStatus() == null : this.getFeedbackStatus().equals(other.getFeedbackStatus()))
            && (this.getPhoneNumber() == null ? other.getPhoneNumber() == null : this.getPhoneNumber().equals(other.getPhoneNumber()))
            && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getWechatNickname() == null ? other.getWechatNickname() == null : this.getWechatNickname().equals(other.getWechatNickname()))
            && (this.getOperationTime() == null ? other.getOperationTime() == null : this.getOperationTime().equals(other.getOperationTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getProblemType() == null) ? 0 : getProblemType().hashCode());
        result = prime * result + ((getProblemDescription() == null) ? 0 : getProblemDescription().hashCode());
        result = prime * result + ((getFeedbackStatus() == null) ? 0 : getFeedbackStatus().hashCode());
        result = prime * result + ((getPhoneNumber() == null) ? 0 : getPhoneNumber().hashCode());
        result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getWechatNickname() == null) ? 0 : getWechatNickname().hashCode());
        result = prime * result + ((getOperationTime() == null) ? 0 : getOperationTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", problemType=").append(problemType);
        sb.append(", problemDescription=").append(problemDescription);
        sb.append(", feedbackStatus=").append(feedbackStatus);
        sb.append(", phoneNumber=").append(phoneNumber);
        sb.append(", email=").append(email);
        sb.append(", remark=").append(remark);
        sb.append(", wechatNickname=").append(wechatNickname);
        sb.append(", operationTime=").append(operationTime);
        sb.append("]");
        return sb.toString();
    }
}